From: Florian Müllner Date: Fri, 19 Feb 2021 16:11:14 +0000 (+0100) Subject: welcomeDialog: Hide overview when taking tour X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~273 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=55e08a3a2fc1213d146eb7904b50ae36af86ed87;p=gnome-shell.git welcomeDialog: Hide overview when taking tour The dialog is shown at session start, which right now means in the regular session, however the plan is to start the session in the overview. When that happens, the "Take the Tour" button should get the user to the Tour without additonal actions. Part-of: --- diff --git a/js/ui/welcomeDialog.js b/js/ui/welcomeDialog.js index 0b6dc4939..cf6540fe2 100644 --- a/js/ui/welcomeDialog.js +++ b/js/ui/welcomeDialog.js @@ -5,6 +5,7 @@ const { Clutter, GObject, Shell, St } = imports.gi; const Config = imports.misc.config; const Dialog = imports.ui.dialog; +const Main = imports.ui.main; const ModalDialog = imports.ui.modalDialog; var DialogResponse = { @@ -51,8 +52,10 @@ class WelcomeDialog extends ModalDialog.ModalDialog { } _sendResponse(response) { - if (response === DialogResponse.TAKE_TOUR) + if (response === DialogResponse.TAKE_TOUR) { this._tourAppInfo.launch(0, -1, Shell.AppLaunchGpu.APP_PREF); + Main.overview.hide(); + } this.close(); }